using UnityEngine;

namespace MaterialUI
{
	public abstract class InstantiationHelper : MonoBehaviour
	{
		public const int optionNone = -1;

		public virtual void HelpInstantiate(params int[] options)
		{
			VectorImage[] componentsInChildren = GetComponentsInChildren<VectorImage>();
			for (int i = 0; i < componentsInChildren.Length; i++)
			{
				componentsInChildren[i].Refresh();
			}
			UnityEngine.Object.DestroyImmediate(GetComponent<InstantiationHelper>());
		}
	}
}
